const path=require('path');
function resolve(dir){
    return path.join(__dirname,dir)
}
module.exports={
    lintOnSave:false,
    configureWebpack:{
        resolve:{
            alias:{
                api:resolve('src/api'),
                components:resolve('src/components'),
                mock:resolve('src/mock'),
                router:resolve('src/router'),
                routes:resolve('src/routes'),
                store:resolve('src/store'),
                pages:resolve('src/pages'),
                util:resolve('src/util')
            }
        }
    },
    //跨域配置
    devServer:{
        proxy: {
            '/sph': {
                target: 'http://39.98.123.211',
                pathRewrite: { '^/sph': '' }
            }
        }
    }
   
}